package com.example.spring.family.init;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @program: knowledge-pooling
 * @ClassName PostConstructTest
 * @description:
 * @author: tomato
 * @create: 2024-07-07 20:10
 * @Version 1.0
 **/
@Component
public class PostConstructTest {
    @PostConstruct
    public void inti1() {
        System.out.println("@PostConstruct 方法1执行...");
    }
    @PostConstruct
    public void inti2() {
        System.out.println("@PostConstruct 方法2执行...");
    }
}